#ifndef __SPO2_LIB_H
#define __SPO2_LIB_H


int RED_IR_Resampling(float Cur, float NewF, uint32_t Data, uint32_t Data1, float *out_seg, float *out_seg2, float *out_slope, float *out_slope1, float *out_diff);
void SPO_CurrentCalibrate(float *x, float *y, int n, float *k, float *b);
float MedFilterBO(float x, int chanId);
float MedTrans(float x, float dst_dc, int chanId);
double SpO2_butter10Hz(double xn, uint8_t ch);
double SpO2_butter5Hz(double xn, uint8_t ch);
double finifilter4Sp02(double input,int chanId);

#endif





